﻿using System.ComponentModel.DataAnnotations;

namespace Quickly.Certs.EntityFrameworkCore.Data
{
    public class DomainName
    {
        public DomainName()
        {
            Created = DateTimeOffset.UtcNow;
            LastModified = DateTimeOffset.UtcNow;
        }

        [Key]
        public long Id { get; set; }

        public string Name { get; set; } = "";

        public long CertificateId { get; set; } = 0;

        public DateTimeOffset Created { get; set; }

        public DateTimeOffset LastModified { get; set; }
    }
}
